/*	read_ir.c:  program to collect IR data streams				requires read_ir.icb, serialio.c*/	char irdata[1000];int x;void main(){	int i;		printf("Waiting for IR  signal...\n");	msleep(250L);		read_ir((int)irdata);		beep();	printf("Press start     to dump data...\n");	start_press();		for (i=0; i< 1000; i++) {		if (irdata[i] == 1) serial_putchar('1');		else serial_putchar('0');		serial_putchar(10);		serial_putchar(13);	}		beep();	printf("Done.\n");}	